package com.huangcy.common.exception;

/**
 * @program: gulimall
 * @description:
 * @author: huangcy
 * @create: 2022-09-08 15:19
 **/
public class NoStockException extends RuntimeException {
    private Long skuId;

    private String msg;

    public NoStockException(String msg) {
        super("商品信息:" + msg);
    }

    public NoStockException(Long skuId) {
        super("商品id:" + skuId + ";没有足够的库存了");
    }

    public Long getSkuId() {
        return skuId;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }
}
